if __name__ == '__main__':
    # 初始化公鸡、母鸡、小鸡数量
    x = 0
    y = 0
    z = 0

    # for x in range(0, 20):
    #     for y in range(0, 34):
    #         for z in range(0, 100):
    #             # print(x, y, z)
    #             if (x + y + z == 100) and (5 * x + 3 * y + z / 3 == 100) and (z % 3 == 0):
    #                 print(x, y, z)

    while x < 20:
        y = 0
        while y < 34:
            z = 0
            while z < 100:
                if (x + y + z == 100) and (5 * x + 3 * y + z / 3 == 100) and (z % 3 == 0):
                    print(x, y, z)
                z = z + 1
            y = y + 1
        x = x + 1
